import request from '@/utils/request'

// 查询取款明细列表
export function listDrawn(query) {
  return request({
    url: '/bank/drawn/list',
    method: 'get',
    params: query
  })
}

// 查询取款明细详细
export function getDrawn(id) {
  return request({
    url: '/bank/drawn/' + id,
    method: 'get'
  })
}

// 新增取款明细
export function addDrawn(data) {
  return request({
    url: '/bank/drawn',
    method: 'post',
    data: data
  })
}

// 修改取款明细
export function updateDrawn(data) {
  return request({
    url: '/bank/drawn',
    method: 'put',
    data: data
  })
}

// 删除取款明细
export function delDrawn(id) {
  return request({
    url: '/bank/drawn/' + id,
    method: 'delete'
  })
}
